import Vue from 'vue'
import App from './App'
import store from './store'
import VueBus from 'vue-bus'
import 'animate.css'
import './static/styles/index.scss'
import api from './api'
import * as util from './utils'
import * as tip from './utils/tip'
// global component ****************************
import CListCell from "@/components/global/c-list-cell";
Vue.component('c-list-cell', CListCell)
import PageHeader from "@/components/global/page-header";
Vue.component('page-header', PageHeader)
import BannerAd from "@/components/global/banner-ad";
Vue.component('banner-ad', BannerAd)
import cardAd from "@/components/global/card-ad";
Vue.component('card-ad', cardAd)
import CLogin from "@/components/global/c-login";
Vue.component('c-login', CLogin)

// global pop
import CPop from "@/components/global/c-pop";
Vue.component('c-pop', CPop)
// ****************************

Vue.config.productionTip = false;
Vue.use(VueBus);
Vue.prototype.$store = store;
Vue.prototype.$api = api;
Vue.prototype.$util = util;
Vue.prototype.$tip = tip;

App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})
app.$mount()
